/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.velocityme.session;

import com.velocityme.entity.Department;
import com.velocityme.entity.Directory;
import com.velocityme.entity.Organisation;
import com.velocityme.entity.Person;
import com.velocityme.entity.Role;
import com.velocityme.entity.RootNode;
import com.velocityme.entity.User;
import javax.ejb.Local;

/**
 *
 * @author rcrida
 */
@Local
public interface SetupLocal {

    class DefaultNodes {
        public RootNode rootNode;
        public Organisation defaultOrganisation;
        public Department defaultDepartment;
        public Person defaultPerson;
        public User defaultUser;
        public Role defaultRole;
        public Directory directoryNode;
    }

    boolean isLicenceInstalled();

    DefaultNodes setupSystemNew(final String username, final String password);

    void setupDatabase(String username, String password);
    
}
